﻿#if NET45
using System.Web.Mvc;
#endif
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace JESAI.HtmlTemplate.Pdf.Controllers
{
    public abstract class BaseComtroller:Controller
    {
        public virtual PDFResult<T> PDFResult<T>(T data) where T:class
        {
            return new PDFResult<T>(data);
        }
        public virtual PDFCallResult<T> PDFSignResult<T>(T data, Func<byte[], byte[]> func) where T : class
        {
            return new PDFCallResult<T>(data, func);
        }
    }
}
